#ifndef QTHREADWRAPPER_H
#define QTHREADWRAPPER_H

typedef void* Thread;
typedef void*(*ThreadFunction)(void*);
typedef void* ThreadArgument;

#ifdef __cplusplus
extern "C"
{
#endif

// Creates a thread that calls thread_func
Thread createThread(ThreadFunction func, ThreadArgument arg);

// Causes the current thread to sleep
void sleepThread(Thread thread, unsigned long usec);

// Destroy thread
void destroyThread(Thread thread);

#ifdef __cplusplus
}
#endif

#endif
